﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LogInControl.ascx.cs" Inherits="Buy2Site.UserControls.LogInControl" %>
<link rel="Stylesheet" type="text/css" href="../CSS/LogInControl.css" id="style" runat="server" visible="false" />
<div dir="rtl">    
    <table cellspacing="5" id="login">
        <tr>
            <td>
                <asp:Label ID="lblHello" runat="server" Text="שלום "></asp:Label>
                <asp:Label ID="lblTitleUserName" runat="server" Text=" אורח "></asp:Label>
                <asp:Label ID="lblLogInMessage" runat="server" Text=", התחבר או"></asp:Label>
            </td>
            <td>
                <asp:HyperLink ID="linkRegister" 
                    CssClass="linkRegisterCss" 
                    runat="server" Text="הרשם" 
                    NavigateUrl="~/Pages/RegisterUserPage.aspx">
                </asp:HyperLink>
            </td>            
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblUserName" runat="server" Text="שם משתמש:"></asp:Label>
            </td>
        </tr>  
         <tr>
            <td>
                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                    runat="server" ControlToValidate="txtUserName"
                    ErrorMessage="User name cannot be empty"
                    Text="*" ForeColor="Red">
                </asp:RequiredFieldValidator>
            </td>
        </tr>  
        <tr>
            <td>
                <asp:Label ID="lblUserPassword" runat="server" Text="סיסמה"></asp:Label>
            </td>
        </tr>  
         <tr>
            <td>
                <asp:TextBox ID="txtUserPassword" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
                    runat="server" ControlToValidate="txtUserPassword"
                    ErrorMessage="Password cannot be empty"
                    Text="*" ForeColor="Red">
                </asp:RequiredFieldValidator>
            </td>
            <td>
                <asp:Button ID="btnLogIn" runat="server" Text="התחבר" 
                    onclick="btnLogIn_Click" />  
            </td>
        </tr>
        <tr>
            <td>
                <asp:HyperLink ID="linkRecoverPassword" 
                    runat="server" 
                    CssClass="linkRegisterCss" 
                    Text="שחזר סיסמא">
                </asp:HyperLink>
            </td>
        </tr>
    </table>
</div>